<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
        content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../../../../lib/html5shiv.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../../../lib/respond.min.js?rev=@@hash"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../../../static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../../static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="../../../../lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../../../../static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="../../../../static/h-ui.admin/css/style.css" />
    <link rel="stylesheet" type="text/css" href="../../../../ht-css/Project.css" />

    <!--表单验证-->
    <script type="text/javascript" src="../../../../lib/Validform/5.3.2/Validform_v5.3.2_min.js?rev=@@hash"></script>
    <link rel="stylesheet" type="text/css" href="../../../../lib/Validform/5.3.2/style.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="../../../../lib/DD_belatedPNG_0.0.8a-min.js?rev=@@hash"></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../../../ht-css/accountAystem/projectMap/projectMapAdd.css" />
    <title>客户组管理</title>
</head>

<body>
    <div class="form-content">
        <div class="projectMap-add">
            <span class="form-title">我司客户信息</span>
            <div>
                <label class="form-label">
                    <span class="c-red pr-5">*</span>我司客户编码：
                </label>
                <div class="formControls">
                    <input type="text" class="input-text radius" name="customerCode">
                    <span id="customerId" class="error-message"></span>
                </div>
                <button class="btn btn-secondary radius size-S"
                    onclick="screenCustomerPageList()">选择</button>
            </div>
            <div>
                <label class="form-label">
                    <span class="c-red pr-5">*</span>我司客户ID：
                </label>
                <div class="formControls">
                    <input type="text" class="input-text radius" name="customerId">
                    <span id="customerId" class="error-message"></span>
                </div>
            </div>
            <div>
                <label class="form-label">
                    <span class="c-red pr-5">*</span>我司客户名称：
                </label>
                <div class="formControls">
                    <input type="text" class="input-text radius" name="customerName">
                    <span id="customerId" class="error-message"></span>
                </div>
            </div>
            <div>
                <label class="form-label">
                    <span class="c-red pr-5">*</span>客户归属公司：
                </label>
                <div class="formControls">
                    <input type="text" class="input-text radius" name="belongGroupName">
                    <span id="customerId" class="error-message"></span>
                </div>
            </div>
            <br>
            <hr />
            <span class="form-title">对方项目信息</span>
            <input type="hidden" name="id">
            <input type="hidden" name="mappingStatus">
            <input type="hidden" name="projectState">
            
            <div>
                <label class="form-label">
                    <span class="c-red pr-5">*</span>对方项目编码：
                </label>
                <div class="formControls">
                    <input type="hidden" name="projectId">
                    <input type="text" class="input-text radius" name="projectCode">
                    <span id="customerId" class="error-message"></span>
                </div>
                <button class="btn btn-secondary radius size-S" onclick="screenProjectPageList()">选择</button>
            </div>
            <div>
                <label class="form-label">
                    <span class="c-red pr-5">*</span>对方项目名称：
                </label>
                <div class="formControls">
                    <input type="text" class="input-text radius" name="projectName">
                    <span id="customerId" class="error-message"></span>
                </div>
            </div>
            <div>
                <label class="form-label">
                    <span class="c-red pr-5">*</span>对方项目所属分子公司：
                </label>
                <div class="formControls">
                    <input type="text" class="input-text radius" name="subcompany">
                    <span id="customerId" class="error-message"></span>
                </div>
            </div>
            <div>
                <label class="form-label">
                    联系人：
                </label>
                <div class="formControls">
                    <input type="text" class="input-text radius" name="contactPerson">
                    <span id="customerId" class="error-message"></span>
                </div>
            </div>
            <div>
                <label class="form-label">
                    电话：
                </label>
                <div class="formControls">
                    <input type="text" class="input-text radius" name="contactPhone">
                    <span id="customerId" class="error-message"></span>
                </div>
            </div>
            <div>
                <label class="form-label">
                    地址：
                </label>
                <div class="formControls">
                    <input type="text" class="input-text radius" name="address">
                    <span id="customerId" class="error-message"></span>
                </div>
            </div>
            <div class="submit-btn">
                <button type="" class="btn btn-secondary radius" onclick="updateCustomerMapping()">保存</button>
                <button class="btn radius size-S" onclick="colse()">取消</button>
            </div>
        </div>

    </div>

    <!--选择项目Start-->
    <div id="screenProject-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
        aria-hidden="ture" style="border-radius: 8px;">
        <div class="modal-dialog">
            <div class="modal-content radius">
                <div class="modal-header">
                    <h3 class="modal-title">选择项目</h3>
                    <a class="close" style="margin-right: 5px;width: 22px;height: 22px;margin-top: 5px"
                        data-dismiss="modal" aria-hidden="true">×</a>
                </div>
                <input type="hidden" class="ship_add_id">
                <div class="pop_win material_product">
                    <div class="info">
                        <div class="project-customer-screen">
                            <div class="search-item">
                                <div class="row">
                                    <label class="form-label">项目编码：</label>
                                    <div class="formControls">
                                        <input type="text" class="input-text radius projectCode">
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="form-label">项目名称：</label>
                                    <div class="formControls">
                                        <input type="text" class="input-text radius projectName">
                                    </div>
                                </div>
                            </div>
                            <div class="screen-btn">
                                <button type="" class="btn btn-secondary radius"
                                    onclick="screenProjectPageList()">查询</button>
                                <button class="btn radius size-S" onclick="screenProjectReset()">重置</button>
                            </div>

                            <table class="table table-border table-bg table-hover table-sort" id="shanDataTable" style="width: 930px;">
                                <thead>
                                    <tr class="text-c">
                                        <th style="width: 5%;">项目ID</th>
                                        <th style="width: 10%;">项目名称</th>
                                        <th style="width: 10%;">项目归属</th>
                                        <th style="width: 10%;">操作</th>
                                    </tr>
                                </thead>
                                <tbody class="addpage-tbody">

                                </tbody>
                            </table>
                            <div class="dataTables_wrapper goods_fanye clearfix mt-5">
                                <div class="f-r pageturning M-box3-screenProject" style="padding-right:145px;"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--选择项目End-->

    <!--选择客户Start-->

    <div id="screenCustomer-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
        aria-hidden="ture" style="border-radius: 8px;">
        <div class="modal-dialog">
            <div class="modal-content radius">
                <div class="modal-header">
                    <h3 class="modal-title">选择客户</h3>
                    <a class="close" style="margin-right: 5px;width: 22px;height: 22px;margin-top: 5px"
                        data-dismiss="modal" aria-hidden="true">×</a>
                </div>
                <input type="hidden" class="ship_add_id">
                <div class="pop_win material_product">
                    <div class="info">
                        <div class="customer-screen">
                            <div class="search-item">
                                <div class="row">
                                    <label class="form-label">客户ID：</label>
                                    <div class="formControls">
                                        <input type="text" class="input-text radius customerId">
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="form-label">CRM客户代码：</label>
                                    <div class="formControls">
                                        <input type="text" class="input-text radius customerCode">
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="form-label">客户名称：</label>
                                    <div class="formControls">
                                        <input type="text" class="input-text radius customerName2">
                                    </div>
                                </div>
                            </div>
                            <div class="screen-btn">
                                <button type="" class="btn btn-secondary radius" onclick="screenCustomerPageList()">查询</button>
                                <button class="btn radius size-S" onclick="screenCustomerReset()">重置</button>
                            </div>

                            <table class="table table-border table-bg table-hover table-sort" id="customerShanDataTable" style="width: 930px;">
                                <thead>
                                    <tr class="text-c">
                                        <th style="width: 5%;">客户ID</th>
                                        <th style="width: 10%;">CRM客户代码</th>
                                        <th style="width: 10%;">客户名称</th>
                                        <th style="width: 10%;">客户归属</th>
                                        <th style="width: 10%;">操作</th>
                                    </tr>
                                </thead>
                                <tbody class="addpage-tbody">

                                </tbody>
                            </table>
                            <div class="dataTables_wrapper goods_fanye clearfix mt-5">
                                <div class="f-r pageturning M-box3-screenCustomer" style="padding-right:145px;"></div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!--选择客户End-->

    <!--_footer 作为公共模版分离出去-->
    <script type="text/javascript" src="../../../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../../../lib/layer/2.4/layer.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script>
    <!--/_footer 作为公共模版分离出去-->
    <!--请在下方写此页面业务相关的脚本-->
    <script type="text/javascript" src="../../../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>
    <!--表单验证-->
    <script type="text/javascript" src="../../../../lib/jquery.validation/1.14.0/jquery.validate.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../../../lib/jquery.validation/1.14.0/validate-methods.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../../../lib/jquery.validation/1.14.0/messages_zh.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../../../lib/datatables/1.10.0/jquery.dataTables.min.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../../../lib/laypage/1.2/laypage.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../../../lib/Validform/5.3.2/Validform_v5.3.2_min.js?rev=@@hash"></script>
    <!--引入分页-->
    <link rel="stylesheet" href="../../../../lib/pagination/pagination.css">
    <script src="../../../../lib/pagination/jquery.pagination.js?rev=@@hash"></script>
    <script src="../../../../ht-js/public.js?rev=@@hash"></script>
    <!--验证token-->
    <script src="../../../../ht-js/verifyToken.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../../../ht-js/frame/doT.min.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../../../ht-js/Customer/accountAystem/projectMap/projectMapAdd.js"></script>
    <script>
        function colse() {
            parent.layer.closeAll();
        }
        $(function () {
            $("#coupon-add").Validform({
                tiptype: 1,
                callback: function (form) {
                    addchannel();
                    return false;
                }
            })
        });

    </script>
</body>

</html>